package com.tjec.project.system.service.impl;

import com.tjec.project.system.domain.BmsCategoryAssociated;
import com.tjec.project.system.mapper.BmsCategoryAssociatedMapper;
import com.tjec.project.system.service.IBmsCategoryAssociatedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务类别关联关系Service业务层处理
 * 
 * @author villwang
 * @date 2020-04-30
 */
@Service
public class BmsCategoryAssociatedServiceImpl implements IBmsCategoryAssociatedService
{
    @Autowired
    private BmsCategoryAssociatedMapper bmsCategoryAssociatedMapper;

    /**
     * 查询业务类别关联关系
     * 
     * @param id 业务类别关联关系ID
     * @return 业务类别关联关系
     */
    @Override
    public BmsCategoryAssociated selectBmsCategoryAssociatedByGuid(Long id)
    {
        return bmsCategoryAssociatedMapper.selectBmsCategoryAssociatedById(id);
    }

    /**
     * 查询业务类别关联关系列表
     * 
     * @param bmsCategoryAssociated 业务类别关联关系
     * @return 业务类别关联关系
     */
    @Override
    public List<BmsCategoryAssociated> selectBmsCategoryAssociatedList(BmsCategoryAssociated bmsCategoryAssociated)
    {
        return bmsCategoryAssociatedMapper.selectBmsCategoryAssociatedList(bmsCategoryAssociated);
    }

    /**
     * 新增业务类别关联关系
     * 
     * @param bmsCategoryAssociated 业务类别关联关系
     * @return 结果
     */
    @Override
    public int insertBmsCategoryAssociated(BmsCategoryAssociated bmsCategoryAssociated)
    {
        return bmsCategoryAssociatedMapper.insertBmsCategoryAssociated(bmsCategoryAssociated);
    }

    /**
     * 修改业务类别关联关系
     * 
     * @param bmsCategoryAssociated 业务类别关联关系
     * @return 结果
     */
    @Override
    public int updateBmsCategoryAssociated(BmsCategoryAssociated bmsCategoryAssociated)
    {
        return bmsCategoryAssociatedMapper.updateBmsCategoryAssociated(bmsCategoryAssociated);
    }

    @Override
    public int deleteBmsCategoryAssociatedByGuids(Long[] ids) {
        return 0;
    }

    @Override
    public int deleteBmsCategoryAssociatedByGuid(Long id) {
        return 0;
    }

    /**
     * 批量删除业务类别关联关系
     * 
     * @param ids 需要删除的业务类别关联关系ID
     * @return 结果
     */
    @Override
    public int deleteBmsCategoryAssociatedByIds(Long[] ids)
    {
        return bmsCategoryAssociatedMapper.deleteBmsCategoryAssociatedByGuids(ids);
    }

    /**
     * 删除业务类别关联关系信息
     * 
     * @param id 业务类别关联关系ID
     * @return 结果
     */
    @Override
    public int deleteBmsCategoryAssociatedById(Long id)
    {
        return bmsCategoryAssociatedMapper.deleteBmsCategoryAssociatedByGuid(id);
    }
}
